﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<QianBuo.Lottery.Web.Areas.Manage.Models.Shared.TopModel>" %>

<div class="top_div_03">
    <div class="top_div_04">

        <div class='div_TakeMoneyCount' align="right"><a href='<%=Url.Action("TakeMoneyDetail", "User")%>'>新提款申请(<font class='font_TakeMoneyCount' color='red'></font>)</a></div>
    </div>
</div>
<style type="text/css">
    .div_TakeMoneyCount{ color:White; width:100%; vertical-align:bottom; text-align:right; line-height:30px;}
</style>
<script type="text/javascript">
    var div = $('.div_TakeMoneyCount');
    div.hide();
    function GetTakeMoneyCount() {
        getJSON('<%=Url.Action("GetTakeMoneyCount","User") %>', null, function (data) {

            if (data.count > 0) {
                var font = $('.font_TakeMoneyCount');
                font.text(data.count);
               
                var div = $('.div_TakeMoneyCount');
                div.show();
                if (data.voidenable == true) {
                    if (data.newCount > 0) {
                        $("#divplaySound").html('<embed style="FILTER: Xray" src="~/Content/Tick.mp3" width="0" height="0" type="audio/mpeg" loop="0" volume="0" ></embed>');
                    }
                }
            }
            else {
                var div = $('.div_TakeMoneyCount');
                div.hide();
            }
            setTimeout('GetTakeMoneyCount()', 5000);
        });
    }
    $(document).ready(function () { setTimeout('GetTakeMoneyCount()', 1000); });
</script>
